<?php
/*
Plugin Name: FlickrSet
Plugin URI: http://asdf
Description: Display a flickr set
Author: Fred van den Driessche
Version: 0.01
Author URI: http://fred.vandendriessche.co.uk
License: GPL
*/

define('FS_BASE_URL', get_bloginfo('wpurl').'/wp-content/plugins/flickrset/');
define('FS_API_KEY', '745bf5cec0e4c9a5e9d225ce015b2e84');
define('FS_API_SEC', 'ebef9aa89e16f438');

//needed so Phlickr works.
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__));
include_once 'Phlickr/Api.php';
include_once 'Phlickr/User.php';
include_once 'Phlickr/Photoset.php';
include_once 'Phlickr/Photo.php';

include_once 'fs_Admin.php';

//Hook up the menu.
add_action('admin_menu', array('fs_admin','addMenu'));

include_once 'fs_Handler.php';

add_shortcode('flickrset',  array('fs_handler', 'shortcodeHandler'));
add_action('wp_head', array('fs_handler', 'header'));
add_action('init', array('fs_handler', 'init'));
?>